{* Smarty *}
{include file="header.tpl"}
<script language="javascript"
		src='{$BASE_HOSTPATH}dr-content/register.js'></script>

<div id="main">
	<div id="mainbar-full">
		{include file="sub-header.tpl"}
			
		<form action="/register" method="post" name="register_form">
			<fieldset>
				<p><label for="username">用户名</label></p>
				<p>
					<input type="text" name="username" id="username" onBlur="check(register_form,'username')"/>
					<input type="hidden" name="username_h" id="username_h" value="not">
				</p>
				<div id="username1"></div>

				<p><label for="email">邮箱</label></p>
				<p>
					<input type="text" name="email" id="email" onBlur="check(register_form,'email')"/>
					<input type="hidden" name="email_h" id="email_h" value="not">
				</p>
				<div id="email1"></div>


				<p><label for="password">密码</label></p>
				<p>
					<input type="password" name="password" id="password" onBlur="checkpassword(register_form,'password')"/>
				</p>
				<div id="password1"></div>

				<p><label for="repassword">再次输入密码</label></p>
				<p>
					<input type="password" name="repassword" id="repassword" onBlur="checkpassword(register_form,'repassword')"/>
					<input type="hidden" name="repassword_h" id="repassword_d" value="not">
				</p>
				<div id="repassword1"></div>


				<p><label for="captcha">验证码</label> <small>输入你在下图中看到的字符.</small></p>
				<p>
					<img name="captcha_img" id="captcha_img"src="{$BASE_HOSTPATH}{$captcha_img}"/>
					<span><a href="JavaScript:updateauthword();">Refresh</a></span>
					<br />
					<input type="text" name="captcha" id="captcha" value="" onkeyup="check(register_form,'captcha')" onBlur="checkcaptcha(register_form)"/>
					<input type="hidden" name="captcha_h" id="captcha_h" value="not">
				</p>
				<div id="captcha1"></div>

				<p><label>服务条款</label> <small>请检查你刚刚填写的信息，并阅读一下的服务条款。</small></p>
				<p><textarea rows="7" cols="60" readonly="readonly">iDaren的服务条款</textarea></p>

				<p><input type="checkbox" name="agree" id="agree" onClick="checksubmit(register_form)"/>您是否同意上述条款。</p>

				<p><input name="submit" id="submit" type="submit" disabled="disabled" value="同意并创建帐号"/></p>
			</fieldset>
		</form>
	</div>
</div>

{literal}
<script language="javascript" type="text/javascript">
	function updateauthword() {
		document.getElementById("captcha_img").src += "?nocache=" + new Date().getTime();
		document.getElementById("captcha").value = "";
		document.getElementById('captcha').focus();
		captcha1.innerHTML = "<font color=#FF0000></font>";
	}
</script>
{/literal}

{include file="footer.tpl"}
